package com.qf.spring.aop.proxy.statics;


import com.qf.spring.aop.service.OrderService;
import com.qf.spring.aop.service.impl.OrderServiceImpl;

/**
 * order静态代理类
 */
public class OrderServiceProxy implements OrderService {

    //初始化业务层接口实现类
    private OrderService orderService = new OrderServiceImpl();

    @Override
    public void orders() {
        System.out.println("方法执行之前，打印日志");
        orderService.orders();
        System.out.println("方法执行之后，打印日志");
    }
}
